package facilius.controller.action.tiponota;

import facilius.model.ServiceLocator;
import org.mentawai.core.BaseAction;

/**
 *
 * @author Graciano
 */
public class TipoNotaDeleteAction extends BaseAction{

    @Override
    public String execute() throws Exception {
        String consequence = ERROR;

        try {

            Long id = input.getLong("id");
            ServiceLocator.getTipoNotaService().delete(id);
            consequence = SUCCESS;

        } catch (Exception e) {
            e.printStackTrace();
        }

        return consequence;
    }


}
